package com.cooperate.fly.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.cooperate.fly.bo.TMatrixZ;
import com.cooperate.fly.bo.TMatrixZWithBLOBs;

@Repository
public interface TMatrixZMapper {
	int updateZValue(@Param("caseId") Integer caseId,@Param("fieldId") Integer fieldId,@Param("zValue")String zValue);
    int deleteByPrimaryKey(Integer id);

    int insert(TMatrixZWithBLOBs record);

    int insertSelective(TMatrixZWithBLOBs record);

    TMatrixZWithBLOBs selectByPrimaryKey(Integer id);
    List<TMatrixZWithBLOBs> selectByFid(Integer fid);

    TMatrixZWithBLOBs selectByCaseIdAndFieldId(@Param("caseId") Integer caseId, @Param("fieldId") Integer fieldId);

    int updateByPrimaryKeySelective(TMatrixZWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(TMatrixZWithBLOBs record);

    int updateByPrimaryKey(TMatrixZ record);
    
    TMatrixZWithBLOBs findZvalues(@Param("caseID") Integer caseID,@Param("field")Integer field);
    
    TMatrixZWithBLOBs selectZByXY(@Param("caseID") String caseID,@Param("field")String field,@Param("xValue")String xValue,@Param("yValue")String yValue);
}